package com.saop.annotation;


import com.saop.annotation.enums.DialogType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 执行前Dialog
 * 再进行操作执行前,提示dialog,指导用户进行选择
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD , ElementType.CONSTRUCTOR})
public @interface AopDialogBefore {

    String title();

    String message();

    String positive() default "sure";

    String negative() default "cancel";

    String neutral() default "" ;

    boolean touchOutSideCancel() default true;

    DialogType type() default DialogType.Positive;

}
